//
//  VegetableMenu.m
//  厨房助手
//
//  Created by 0.0 on 15-4-13.
//  Copyright (c) 2015年 dingjun. All rights reserved.
//

#import "VegetableMenu.h"
#import "MyConnection.h"

@implementation VegetableMenu

- (void)dealloc
{
    [_vegetable_id release];
    [_name release];
    [_fittingRestriction release];
    [_englishName release];
    [_imagePathLandscape release];
    [_clickCount release];
    [_materialVideoPath release];
    [_productionProcessPath release];
    
    [super dealloc];
}
- (instancetype)initWithVegetable_id:(NSString *)vegetable_id name:(NSString *)name fittingRestriction:(NSString *)fittingRestriction englishName:(NSString *)englishName imagePathLandscape:(NSString *)imagePathLandscape clickCount:(NSString *)clickCount materialVideoPath:(NSString *)materialVideoPath productionProcessPath:(NSString *)productionProcessPath
{
    self = [super init];
    
    if (self) {
        self.vegetable_id = vegetable_id;
        self.name = name;
        self.fittingRestriction = fittingRestriction;
        self.englishName = englishName;
        self.imagePathLandscape = imagePathLandscape;
        self.clickCount = clickCount;
        self.materialVideoPath = materialVideoPath;
        self.productionProcessPath = productionProcessPath;
    }
    return self;
}

+ (VegetableMenu *)vegetableMenuWithVegetable_id:(NSString *)vegetable_id name:(NSString *)name fittingRestriction:(NSString *)fittingRestriction englishName:(NSString *)englishName imagePathLandscape:(NSString *)imagePathLandscape clickCount:(NSString *)clickCount materialVideoPath:(NSString *)materialVideoPath productionProcessPath:(NSString *)productionProcessPath
{
    VegetableMenu *menu = [[VegetableMenu alloc] initWithVegetable_id:vegetable_id name:name fittingRestriction:fittingRestriction englishName:englishName imagePathLandscape:imagePathLandscape clickCount:clickCount materialVideoPath:materialVideoPath productionProcessPath:productionProcessPath];
    return [menu autorelease];
}



@end
